﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BloomsburyBanHang
{
    public class NhaMoiGioiDTO
    {
        private string tenHamLogin;

        public string TenHamLogin
        {
            get { return tenHamLogin; }
            set { tenHamLogin = value; }
        }
        private string tenHamTranfer;

        public string TenHamTranfer
        {
            get { return tenHamTranfer; }
            set { tenHamTranfer = value; }
        }
        private string tenNhaMoiGioi;

        public string TenNhaMoiGioi
        {
            get { return tenNhaMoiGioi; }
            set { tenNhaMoiGioi = value; }
        }
        private string tenService;

        public string TenService
        {
            get { return tenService; }
            set { tenService = value; }
        }
        private string uRL;

        public string URL
        {
            get { return uRL; }
            set { uRL = value; }
        }
        public static   NhaMoiGioiDTO Convert(NHA_MO_GIOI nmg)
        {
            NhaMoiGioiDTO result = new NhaMoiGioiDTO();
            result.TenHamLogin = nmg.TenHamLogin;
            result.TenHamTranfer = nmg.TenHamTranfer;
            result.URL = nmg.URL;
            result.TenNhaMoiGioi = nmg.TenNhaMoGioi;
            result.TenService = nmg.TenService;
            return result ;
        }
        public static NHA_MO_GIOI DiverseConvert(NhaMoiGioiDTO nmg)
        {
            NHA_MO_GIOI result = new NHA_MO_GIOI();
            result.TenHamLogin = nmg.TenHamLogin;
            result.TenHamTranfer = nmg.TenHamTranfer;
            result.URL = nmg.URL;
            result.TenNhaMoGioi = nmg.TenNhaMoiGioi;
            result.TenService = nmg.TenService;
            return result;
        }
    }
}